﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TouchSocket.Http;

namespace myBackupClient.Backup
{
    public class BackupFileHttpFlowOperator : HttpFlowOperator
    {
        public delegate void ProgressChangedHandler(float progress, long speed);
        public event ProgressChangedHandler ProgressChanged;
        public  BackupFileHttpFlowOperator()
        {
            this.FlowGate.OnPeriod += (count) =>
            {
                ProgressChanged?.Invoke(this.Progress, this.Speed());
            };
        }
    }
}
